]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Keyboard: clear currentSource after destruction
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 24 Apr 2013 19:38:00 +0000 (21:38 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 24 Apr 2013 19:47:03 +0000 (21:47 +0200)
StLabel doesn't like that we set its properties after destructions,
and this would happen in currentInputSourceChanged() at the end,
when setting the ornament.

js/ui/status/keyboard.js

index 28e5b861a2e690457db7d4699371d4a539186f9c..4880fd2bb123b5196e633ea43c3b3a7ec956842c 100644 (file)
@@ -459,6 +459,7 @@ const InputSourceIndicator = new Lang.Class({
 
         this._inputSources = {};
         this._ibusSources = {};
+        this._currentSource = null;
 
         let inputSourcesByShortName = {};